import { useDispatch,useSelector } from "react-redux"
import { increment, decrement,incrementByAmount} from  "../../../../store/Home"
import { Button, Input } from "antd"
function Home() {
  const dispatch = useDispatch()
  const badges = useSelector((state) => state.home_alisa.badges)
  return (
    <div >
      <Button type="primary" onClick={(event) => {
      dispatch(increment())
      }}
      >+</Button>
      <Input value={badges}></Input>
      <Button type="primary" onClick={(event) => {
      dispatch(decrement())
      }}
      >-</Button>
    </div>
  )
}
export default Home